<?php




namespace App\Http\Controllers\Api\User;


use App\Http\Controllers\Api\BasicController;
use App\Models\Users\MoneyLog;
use GatewayWorker\Lib\Gateway;
use Jiannei\Response\Laravel\Support\Facades\Response;

class MoneyController extends BasicController
{

    /**
     * @api {post} /money/list 金额列表
     * @apiDescription
     * @apiHeader {String} Authorization='Bearer '
     */

    public function list(){
        $uid=$this->uid();
        $type=$this->request->input('type',2);
        $list=MoneyLog::where(['user_id'=>$uid,'type'=>$type])->paginate();
        return Response::success($list);
    }





}
